﻿#ifndef EPIBOLYVIEW_H
#define EPIBOLYVIEW_H

#include <QDialog>
#include "env.h"
#include "epibolyroutine.h"

namespace Ui {
class EpibolyView;
}

class EpibolyView : public QDialog
{
    Q_OBJECT

public:
    explicit EpibolyView(QWidget *parent = 0);
    ~EpibolyView();

    void setQuery();
    void updateRoutine(const QString &);

private slots:
    void updateStuff(const QModelIndex &);
    void updateRoutine(const QModelIndex &);
    void updateDetail(const QModelIndex &);
    void showRoutine(const QModelIndex &);

private:
    Ui::EpibolyView *ui;

    QSqlQueryModel *model;
    QSqlQueryModel *stuffModel;
    QSqlQueryModel *routineModel;
};

#endif // EPIBOLYVIEW_H
